package com.woniuxy.consumer.student;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @Author: linKe
 * @Date: 2022/1/20 9:46
 * @FileName: ConsumerStudentStart
 * @version: 1.0
 * @Description: ConsumerStudent 客户端注册启动类
 * ·@EnableDiscoveryClient 服务发现
 * · EnableEurekaClient 注册中心客户端启动注解
 * 使用ribbon就不要discovery
 * <p>
 * `@EnableFeignClients openfeign 启用openfeign 调用
 * 使用 声明接口，接口注解服务名进行调用
 *
 * `@EnableHystrix 启用Hystrix
 */
//@EnableDiscoveryClient
@EnableEurekaClient
@EnableHystrix
@EnableRabbit
@EnableFeignClients
@SpringBootApplication
public class ConsumerStudentStart {
    public static void main(String[] args) {

        SpringApplication.run(ConsumerStudentStart.class, args);
    }
}
